//
//  WebViewController.m
//  Doctor1.0
//
//  Created by mk on 15/11/3.
//  Copyright (c) 2015年 cocoa-mk. All rights reserved.
//

#import "WebViewController.h"
#include <JavaScriptCore/JSContext.h>

@interface WebViewController ()

@end

@implementation WebViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
   titleLabel.text = self.strTitle;
   
   [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.strUrl]]];
}


-(void)webViewDidStartLoad:(UIWebView *)webView
{
    [indicat startAnimating];
    indicat.hidden = NO;
}

//完成
-(void)webViewDidFinishLoad:(UIWebView *)webView
{
    [indicat stopAnimating];
    indicat.hidden = YES;
}

-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{
   // DLog(@"===%@",error);
    [indicat stopAnimating];
    indicat.hidden = YES;
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
